<!DOCTYPE html>
<html lang="ch" xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
    <link href="../../../static/css/query.css" rel="stylesheet"/>
    <link th:href="@{/static/css/query.css}" rel="stylesheet">
</head>
<body>
    <div class="main-container">
        <h1>活动表</h1>
        <div>
            <table border="1" cellspacing="0">
                <thead>
                <tr>
                    <th>编号</th>
                    <th>活动名称</th>
                    <th>活动描述</th>
                    <th>删除</th>
                </tr>
                </thead>
                <tbody>
                <tr th:each="activity:${acts}">
                    <th th:text="${activity.getId()}"></th>
                    <th th:text="${activity.getName()}"></th>
                    <th th:text="${activity.getDescription()}"></th>
                    <th> <button th:href="@{'/doDelete/'+${activity.getId()}}">删除</button> </th>
                </tr>
                </tbody>
            </table>

        </div>
    </div>
</body>
</html>